#define _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include<iostream>
using namespace std;
class Solution {
public:
    vector<vector<int>> generate(int numRows)
    {
        vector<vector<int>> vv;
        vv.resize(numRows);
        int i = 0, j = 0;
        for (i = 0; i < numRows; i++)
        {
            vv[i].resize(i + 1);
        }

        for (i = 0; i < numRows; i++)
        {
            for (j = 0; j <= i; j++)
            {
                if (j == 0 || i == j)
                {
                    vv[i][j] = 1;
                }
                else
                {
                    vv[i][j] = vv[i - 1][j - 1] + vv[i - 1][j];
                }
            }
        }
        return vv;

    }

    int removeDuplicates(vector<int>& nums)
    {
        int i = 0, j = 0;
        for (i = 1; i < nums.size(); i++)
        {
            if (nums[i] != nums[j])
            {
                nums[++j] = nums[i];
            }
        }

        return j + 1;
    }
};

int main()
{
    Solution S;
    S.generate(5);

    vector<int> v;
    int i = 0;
    for (i = 0; i < 100; i++)
    {
        v.push_back(i);
    }
    cout << sizeof(v) << endl;
    return 0;
}